package com.crm.customers.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.crm.customers.dao.CustomerFilesDao;
import com.crm.customers.model.CustomerFiles;
import com.crm.customers.service.CustomerFilesService;

@Service("customerFilesService")
public class CustomerFilesServiceImpl implements CustomerFilesService {
	
	@Autowired
	private CustomerFilesDao customerFilesDao;

	@Override
	public CustomerFiles insertCustomerFiles(CustomerFiles cf) {
		return customerFilesDao.insertCustomerFiles(cf);
	}

	@Override
	public CustomerFiles updateCustomerFiles(CustomerFiles cf) {
		return customerFilesDao.updateCustomerFiles(cf);
	}

	@Override
	public int deleteCustomerFiles(Long id) {
		return customerFilesDao.delectCustomerFile(id);
	}

	@Override
	public List<CustomerFiles> getCusFilListByParams(CustomerFiles cf) {
		return customerFilesDao.getCusFilListByParams(cf);
	}

}
